﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="ViewProduct.aspx.cs" Inherits="University.Workshop.WebApp.ViewProduct" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <center>
        <br />
        <br />
        <asp:DropDownList ID="DropDownListCategory" runat="server" Height="17px" 
            style="margin-left: 0px" Width="155px">
             <asp:ListItem>All Products</asp:ListItem>
            <asp:ListItem>Electronics</asp:ListItem>
            <asp:ListItem>Motors</asp:ListItem>
            <asp:ListItem>Collectibles &amp; Art</asp:ListItem>
            <asp:ListItem>Home, Outdoors &amp; Decor</asp:ListItem>
            <asp:ListItem>Entertainment</asp:ListItem>
            <asp:ListItem>Deals &amp; Gifts</asp:ListItem>
        </asp:DropDownList>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <br />
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        
        <asp:TextBox ID="TxtBoxWords" runat="server" style="margin-left: 1px" 
            Width="205px" ontextchanged="TxtBoxWords_TextChanged"></asp:TextBox>
&nbsp;
        <asp:Button ID="BtnSearch" runat="server" Height="25px" Text="Search" 
            Width="77px" onclick="BtnSearch_Click" />
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:Button ID="Button1" runat="server" Text="Advanced Search" 
            onclick="Button1_Click" />
            
        <br />
        <br />
    <asp:Label ID="LabelMessage" runat="server" ForeColor="Maroon" ></asp:Label>
        <br />
        <br />
        <asp:Label ID="LblResults" runat="server" BackColor="#33CC33" 
            Font-Size="Medium" ForeColor="White"></asp:Label>
        <br />
    
    <br />
    <asp:DataGrid ID="ProductGrid" runat="server" PageSize="10" AllowPaging="True" DataKeyField="ProductId"
            AutoGenerateColumns="False" CellPadding="8" ForeColor="#003366" 
                GridLines="None" 
                OnPageIndexChanged="OnPageIndexChanged" oneditcommand="ProductGrid_EditCommand"
             >
            <Columns>
           <asp:EditCommandColumn EditText="Select" ></asp:EditCommandColumn>
                <asp:BoundColumn HeaderText="Product Id" DataField="ProductId" Visible="false"></asp:BoundColumn>
                <asp:BoundColumn HeaderText="Name" DataField="Name" HeaderStyle-Width="500">
                

<HeaderStyle Width="400px"></HeaderStyle></asp:BoundColumn>
                <asp:BoundColumn HeaderText="Category" DataField="Category" HeaderStyle-Width="100"> 
<HeaderStyle Width="100px"></HeaderStyle>
                </asp:BoundColumn>
                <asp:BoundColumn HeaderText="Price" DataField="Price" visible="true"></asp:BoundColumn>
                <asp:BoundColumn HeaderText="Currency" DataField="Currency" visible="true"></asp:BoundColumn>
                <asp:BoundColumn HeaderText="Quantity" DataField="Quantity" visible="true"></asp:BoundColumn>
               
            </Columns>
            <EditItemStyle BackColor="#003366" ForeColor="White" />
            <FooterStyle BackColor="#003366" Font-Bold="True" ForeColor="White" />
            <SelectedItemStyle BackColor="White" Font-Bold="True" ForeColor="#003366" />
            <PagerStyle BackColor="#003366" ForeColor="White" HorizontalAlign="Center" 
                Mode="NumericPages" />
            <AlternatingItemStyle BackColor="#003366" ForeColor="White" />
            <ItemStyle BackColor="#003366" ForeColor="White" />
            <HeaderStyle BackColor="#3a4f63" Font-Bold="True" ForeColor="White" />
        </asp:DataGrid>
    <br />
        <br />
    &nbsp;<br />
        <asp:Label ID="LabelProdID" runat="server" Visible="False"></asp:Label>
&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:Label ID="LabelProdNAME" runat="server" Visible="False"></asp:Label>
    &nbsp;&nbsp;
        <asp:Label ID="LabelProdPrice" runat="server" Visible="False"></asp:Label>
    </center>
</asp:Content>
